<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../commons/taglibs.jsp"%>
<style>
.pf-row {
	margin-bottom: 5px;
}

.pf-row  label {
	display: inline-block;
	width: 20%;
	text-align: right;
}
</style>
<div class="modal fade" data-backdrop="static"  id="pf-edit-store_dialog">
	<div class="modal-dialog ">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal"></button>
				<h3 id="pf-modal-title">上传商品</h3>
			</div>
			<div class="modal-body">
				<form id="pf-seller-addcommodities-form" action="/seller/commodities/submit" method="post"  enctype="multipart/form-data">
					<%--用户id --%>
					<input type="hidden" id="ids" value="">
					<div class="pf-row">
						<label>
							编号:
						</label>
						<input type="text" class="form-control" placeholder="系统自动生成" style="display: inline-block; width: 35%" id="cId" name="cId" value="" readonly="readonly"/>
					</div>
					<div class="pf-row">
						<label>
							类型:
						</label>
						<select class="form-control" style="display: inline-block; width: 150px" id="coClassId" name="coClassId">
						  <option value="1">饮料</option>
						  <option value="2">零食</option>
						</select>
						<!-- <input type="text" class="form-control" style="display: inline-block; width: 35%" id="cClass" name="cClass" value="" /> -->
					</div>
					<div class="pf-row">
						<label>
							商品名称:
						</label>
						<input type="text" class="form-control" style="display: inline-block; width: 35%" id="coName" name="coName" value=""/>
					</div>
						<div class="pf-row">
						<label>
							库存量:
						</label>
						<input type="text" class="form-control" style="display: inline-block; width: 35%" id="coNum" name="coNum" value=""/>
					</div>
						<div class="pf-row">
						<label>
							价格:
						</label>
						<input type="text" class="form-control" style="display: inline-block; width: 35%" id="coPrice" name="coPrice" value=""/>
					</div>
					
					<div class="pf-row" id="wrap">
						<label>
							商品图片:
						</label>
					
					</div>
				
					<div class="pf-row" id="wrap" style="margin-left: 100px;">
						<div>
				            <img id="ImgPr" width="400" height="300" />
						</div>
						<div style="margin-left: 5px;">
							<a href="javascript:;" class="file">
								<input type="file" name="ICardFile" id="up" required>点击这里上传文件
							</a>
						</div>	
					</div>
	  				
				
				</form>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-primary" onclick="btnCommit()">提交</button>
				<button type="button" data-dismiss="modal" class="btn">关闭</button>
			</div>
		</div>
	</div>
</div>
   